package com.xfz.service;

import com.xfz.Mapper.MaterialMapper;
import com.xfz.Mapper.SupplierMapper;
import com.xfz.User.Material;
import com.xfz.User.Supplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MaterialService {
    @Autowired
    MaterialMapper materialMapper;

    public List<Material> findAllMaterials() {
        return materialMapper.findAllMaterial();
    }

    public   List<Material> saveMaterial(Material material){
        return materialMapper.saveMaterial(material);
    }
}
